<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    if (path.length() > 0) path = path.substring(0, path.length() - 1);
%>
<html>
<head>
    <jsp:include page="/view/inc/incTopScript.jsp" flush="false"/>
</head>
<!--body-->
<div class="container" style="padding-top:0px;">
    <div class="row text-center" style="margin-left:-19px;margin-right:-19px;">
        <hr style="margin-top:0">
        <s:iterator value="#request.goodList" var="good">
            <div class="col-sm-2 col-md-2 col-lg-2 col-xs-3" style="padding:6px">
                <div class="thumbnail">
                    <a target="_parent"
                       href="<%=path %>/goodDetail.action?goodId=<s:property value="#good.goodId"/>">
                        <img style="height: 120px;"
                             src="<%=path %><s:property value="#good.goodPic"/>"
                             alt="Thumbnail Image 1" class="img-responsive"
                        />
                    </a>
                    <div class="caption">
                        <h4 style="height: 20px;overflow: hidden;"><s:property value="#good.goodName"/></h4>
                        <p>￥<s:property value="#good.goodPrice"/></p>
                        <p>
                            <a target="_parent" href="<%=path %>/good/goodDetail.action?goodId=${good.goodId}"
                               class="btn btn-primary" role="button">
                                <span class="glyphicon glyphicon-shopping-cart" aria-hidden="true"></span> 立即购买</a>
                        </p>
                    </div>
                </div>
            </div>
        </s:iterator>
    </div>
    <jsp:include page="/common/page.jsp" flush="true"/>
</div>
<jsp:include page="/view/inc/incFootScript.jsp" flush="false"/>
</html>

